package opentrade

import (
	"encoding/xml"

	"github.com/bububa/opentaobao/model"
)

// TaobaoOpentradeCreateOrderAPIResponse 订单创建 API返回值
// taobao.opentrade.create.order
//
// 交易开放创建订单
type TaobaoOpentradeCreateOrderAPIResponse struct {
	model.CommonResponse
	TaobaoOpentradeCreateOrderAPIResponseModel
}

// TaobaoOpentradeCreateOrderAPIResponseModel is 订单创建 成功返回结果
type TaobaoOpentradeCreateOrderAPIResponseModel struct {
	XMLName xml.Name `xml:"opentrade_create_order_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 订单ID
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
}
